/* Pinia */
import { createPinia } from 'pinia'
import type { App } from 'vue'

// Plugins
import piniaPluginPersist from 'pinia-plugin-persist'

// Export setup function
export const setupPinia = (app: App) => {
  // Pinia instance
  const pinia = createPinia()

  // Register plugins
  pinia.use(piniaPluginPersist)
  app.use(pinia)
}

// Export
export * from "./modules"